<?php $this->_extends('_layouts/main_layout'); ?>
<?php $this->_block('title'); ?>
  CGB Dashboard
<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
		<div id="content" class="box">
		<div id="menu" class="box">
				<ul class="box">
					
				</ul>
			</div>
			<h1>CGB Dashboard</h1>
			
			<div>Pending Fulfillments: <?php echo $pendingFulfillments; ?></div>
			<table class="full-size">
				<tbody>
					<tr>
						<th>Site</th>
						<th># of Users</th>
						<th>Jackpot</th>
						<th>Played Today</th>
						<th>Won Today</th>
					</tr>
					<?php
						if(!empty($sites)):
							foreach ($sites as $site):
					?>
						<tr>
							<td><?php echo $site['domain'];?></td>
							<td><?php echo $site['user_nums'];?></td>
							<td><?php echo $site['jackpot'];?></td>
							<td><?php echo $site['today_played'];?></td>
							<td><?php echo $site['today_won'];?></td>
						<tr>
					<?php 
						endforeach;	
						endif;		
					?>
				</tbody>
			</table>
		</div>
<?php $this->_endblock(); ?>